/**
 * Created by 何李2298923519on 2017-12-26.
 */

/*  地址管理 /添加地址   的省市区封装  */
var requestsMode = require('requestsMode.js');
let cityData =[];
requestsMode.sendRequest('api/get-region', 'POST', {}, {}).then(
    function (response) {
        let AllCityData = response.data.data[22];
        AllCityData.sub = [AllCityData.sub[0]];
        cityData=[AllCityData];
    }, function (error) {

    }
);
function init(that) {
    that.setData({
        'cityData': cityData
    });
}

module.exports = {
    init: init
};